package cn.csc.module.order.api.order.dto;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.time.LocalDateTime;
import java.util.List;


/**
 * 订单信息
 *
 * @author FrozenWatermelon
 * @date 2020-12-05 14:13:50
 */
@Data
public class OrderRespDTO {

	@ApiModelProperty(value = "订单ID" )
    private BigInteger orderId;

	@ApiModelProperty(value = "店铺id" )
    private BigInteger shopId;

	@ApiModelProperty(value = "用户ID" )
    private BigInteger userId;

	@ApiModelProperty(value = "店铺名称" )
	private String shopName;

	@ApiModelProperty(value = "总值" )
    private Long total;

	@ApiModelProperty(value = "订单状态 1:待付款 2:待发货 3:待收货(已发货) 5:成功 6:失败" )
    private Integer status;

	@ApiModelProperty(value = "单个orderItem的配送类型1.快递物流(默认）,2.送货上门,3.自提" )
    private Integer deliveryType;

	@ApiModelProperty(value = "订单关闭原因 1-超时未支付 4-买家取消 15-已通过货到付款交易" )
    private Integer closeType;

	@ApiModelProperty(value = "订单商品总数" )
    private Integer allCount;

	@ApiModelProperty(value = "付款时间" )
    private LocalDateTime payTime;

	@ApiModelProperty(value = "发货时间" )
    private LocalDateTime deliveryTime;

	@ApiModelProperty(value = "完成时间" )
    private LocalDateTime finallyTime;

	@ApiModelProperty(value = "取消时间" )
    private LocalDateTime cancelTime;

	@ApiModelProperty(value = "是否已支付，1.已支付0.未支付" )
    private Integer isPayed;

	@ApiModelProperty(value = "用户订单删除状态，0：没有删除， 1：回收站， 2：永久删除" )
    private Integer deleteStatus;

	@ApiModelProperty(value = "订单项,目前只有单项" )
	private List<OrderItemDTO> orderItems;

	@ApiModelProperty(value = "订单地址" )
	private OrderAddrDTO orderAddr;
    @ApiModelProperty(value = "sku名称", required = true)
    private String skuName;

    @ApiModelProperty(value = "产品价格", required = true)
    private BigDecimal price;
    @ApiModelProperty(value = "产品主图片路径", required = true)
    private String pic;

}
